import request from '@/utils/request'

let UserApi = {

  /*用户登录*/
  login(data, errorback) {
    return request._post('/supplier/passport/login', data, errorback);
  },
  /*退出登录*/
  loginOut(data, errorback) {
    return request._post('/supplier/passport/logout', data, errorback);
  },
  /*用户列表*/
  userlist(data, errorback) {
    return request._post('/supplier/supplier.supplier/getUserListData', data, errorback);
  },
  /*修改密码*/
  EditPass(data, errorback) {
    return request._post('/supplier/passport/editPass', data, errorback);
  },

  /*获取待处理订单*/
  getOrder(data, errorback) {
    return request._post('/supplier/order.order/getPendingOrder', data, errorback);
  },

   /*用户列表*/
   getUserList(data, errorback) {
    return request._post('/supplier/supplier.supplier/getUserList', data, errorback);
  },
}

export default UserApi;
